<html>
<head><meta charset="utf-8"><title>Lift trait · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Lift.20trait.html">Lift trait</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="214350294"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Lift%20trait/near/214350294" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Dániel Buga <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Lift.20trait.html#214350294">(Oct 23 2020 at 18:37)</a>:</h4>
<p>How can I derive Lift for a type that has no lifetime param?</p>
<p>I'm trying to modify ObligationCause so that it doesn't (always) hold a Span, but the type I replaced Span with (an enum at the moment) results in the following error:</p>
<div class="codehilite"><pre><span></span><code>the trait `Lift&lt;&#39;_&gt;` is not implemented for `SpanSource`
</code></pre></div>


<p>I'm not sure what I should do since I don't see Lift implemented for Span either.</p>



<a name="214350483"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Lift%20trait/near/214350483" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lcnr <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Lift.20trait.html#214350483">(Oct 23 2020 at 18:38)</a>:</h4>
<p>there is a <code>CloneLiftImpls</code> macro</p>



<a name="214350497"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Lift%20trait/near/214350497" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lcnr <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Lift.20trait.html#214350497">(Oct 23 2020 at 18:38)</a>:</h4>
<p>or more probably the <code>CloneTypeFoldableAndLiftImpls</code></p>



<a name="214350758"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Lift%20trait/near/214350758" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Dániel Buga <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Lift.20trait.html#214350758">(Oct 23 2020 at 18:41)</a>:</h4>
<p>Thanks a lot <span aria-label="smile" class="emoji emoji-1f642" role="img" title="smile">:smile:</span></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>